package com.xjnt.tvos.tvlibs.jsbridge.data;

/**
 *
 * 回调参数处理
 *
 * Created by caoyong on 18-1-10.
 */
class ParamCallback extends BasicParam {
    ParamCallback(String paramName, Class<?> paramClass) {
        super(paramName, paramClass);
    }

    @Override
    public Object getValue(DataBuilder dataBuilder) {
        return dataBuilder.get(getParamName(), getParamClass());
    }

    @Override
    public void setValue(DataBuilder dataBuilder, Object value) {
        dataBuilder.put(getParamName(), value);
    }
}
